package com.arron.adapter.classadapter;

public class Client {
    public static void main(String[] args) {
        System.out.println("~~类适配器模式~~");
        VoltageAdapter adapter = new VoltageAdapter();
        Phone phone = new Phone();
        phone.charging(adapter);
        System.out.println("---------------------------");
        Computer computer = new Computer();
        computer.charging(adapter);
    }
}
